home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / datetime.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-08  |  1.2 KB  |  37 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ADateTime wrapper class                                                   *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_DateTime_H
  12. #define ASAP_DateTime_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/DOS.h>
  17. }
  18.  
  19. class ADateTime : public DateTime
  20. {
  21.  public:
  22.  inline LONG DateToStr();
  23.  inline LONG StrToDate();
  24. };
  25. //----------------------------------------------------------------------------
  26. LONG ADateTime::DateToStr ()
  27. {
  28.  return ::DateToStr(this);
  29. }
  30. //----------------------------------------------------------------------------
  31. LONG ADateTime::StrToDate ()
  32. {
  33.  return ::StrToDate(this);
  34. }
  35.  
  36. #endif
  37.